{extend name='admin@main'}

{block name="content"}
<div class="think-box-shadow">
    {include file='verified/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
            </th>
            <th class='text-left nowrap'>会员账号</th>
            <th class='text-left nowrap'>会员信息</th>
            <th class='text-left nowrap'>联系方式</th>
            <th class='text-left nowrap'>认证信息</th>
            <th class='text-left nowrap'>微信二维码</th>
            <th class='text-left nowrap'>支付宝二维码</th>
            <th class='text-left nowrap'>认证状态</th>
            <th class='text-left nowrap'>提交时间</th>
            <th class='text-left nowrap'>操作</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='list-table-check-td think-checkbox'>
                <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
            </td>
            <td class='text-left'>{$vo.account}</td>
            <td class='text-left nowrap'>
                {notempty name='vo.avatar'}
                <img data-tips-image style="width:40px;height:40px;vertical-align:top" src="{$vo.avatar|default=''}" class="margin-right-5">
                {/notempty}
                <div class="inline-block">
                    {$vo.nickname|default='--'}
                <br/>
                    {$vo.realname|default='--'}
                </div>
            </td>
            <td class='text-left'>
                {$vo.phone|default='--'}<br/>
                {$vo.spare_phone|default='--'}
            </td>
            <td class='text-left'>
                微信号:{$vo.wechat|default='--'}
                <br/>
                支付宝:{$vo.alipay|default='--'}
            </td>
            <td class='text-left'>
                {notempty name='vo.wechat_qrcode'}
                <img data-tips-image style="width:auto;height:40px;vertical-align:top" src="{$vo.wechat_qrcode|default=''}" class="margin-right-5">
                {/notempty}
            </td>
            <td class='text-left'>
                {notempty name='vo.alipay_qrcode'}
                <img data-tips-image style="width:auto;height:40px;vertical-align:top" src="{$vo.alipay_qrcode|default=''}" class="margin-right-5">
                {/notempty}
            </td>
            <td class='text-left'>
                {switch $vo.verified }
                {case -1 }<span class="layui-badge layui-bg-black">认证失败</span>{/case}
                {case 1}<span class="layui-badge layui-bg-green">已认证</span>{/case}
                {default /}<span class="layui-badge">未认证</span>
                {/switch}

            </td>
            <td class='text-left'>{$vo.create_at|format_datetime|str_replace=' ','<br><span class="color-desc">时间：',###|raw}</td>
            <td class='text-left nowrap'>
                {if auth("meetyou/verified/edit")}
                <a data-dbclick data-title="编辑" class="layui-btn layui-btn-xs" data-modal='{:url("edit")}?mid={$vo.id}'>编 辑</a>
                {/if}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}
